Delete File
AutomatR.Dropbox.Activities.DeleteFile
The "Delete File" activity in AutomatR is part of the Dropbox.Files activities package, facilitating the deletion of a file in the user's Dropbox. This activity streamlines file management tasks in Dropbox, enhancing the efficiency of automation workflows.
Properties
Name | Description |
---|---|
Input | |
File Path | Specifies the full path of the file to be deleted from Dropbox, including the file name (e.g., "Root/DeleteFile/File1.txt"). String variables containing the file path. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Delete File" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the delay is 5 seconds, enter "5". |
Output | |
Result | Returns true or false depending on the success of the file deletion. Variables of type bool to store the operation result. |
How to Use
- Drag and drop the "Delete File" activity onto the workflow.
- Configure the properties by specifying the full path of the file to be deleted from Dropbox.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to delete the specified file from Dropbox.
Example
Consider an example where the "Delete File" activity is used to delete a file named "File1.txt" within a folder named "DeleteFile" in Dropbox:
Delete File:
Display Name: "Delete Document"
File Path: "Root/DeleteFile/File1.txt"
Result: isDeleteSuccessful
In this example, the activity deletes the "File1.txt" from the "DeleteFile" directory in Dropbox. The result of the operation (success or failure) is stored in the Boolean variable "isDeleteSuccessful" for further handling in the workflow.